package com.pb.b2b.common.enums;

import java.math.BigDecimal;
import java.sql.Types;

public abstract class EnumarationType extends EnumarationTypeBase {

	protected static int[] SQL_TYPES = { Types.VARCHAR };

	public EnumarationType() {
	}

	public EnumarationType(Integer value, String label) {
		this.value = value.toString();
		this.label = label;
	}

	public EnumarationType(String value, String label) {
		this.value = value.toString();
		this.label = label;
	}

	public EnumarationType(Integer value, String label, String resourceKey) {
		this.value = value.toString();
		this.label = label;
		this.resourceKey = resourceKey;
	}

	public String getValue() {
		return (String) value;
	}

	public BigDecimal getBigDecimalValue() {
		BigDecimal tValue = new BigDecimal(getValue());
		return tValue;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
